<% get_restaurant_sidebar('food') %>
<% get_restaurant_breadcrumb(@navs,@nav_title) %>
<div class="row">
  <div class="col-md-12">
    <div class="white-box">
      <%= link_to("修改菜品", "/restaurants/foods/#{@food.id}/edit" , class:"btn btn-info") %>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-6">
    <div class="panel panel-default">
     <div class="panel-heading">菜品基本信息</div>
      <div class="panel-wrapper collapse in">
       <div class="panel-body">
         <p>菜品名称: <span class="label label-info"><%= @food.name %></span></p>
         <p>菜品类型: <span class="label label-info"><%= @food.food_type.name %></span></p>
         <p>菜品卖价: <span class="label label-info"><%= @food.sell_price %></span> </p>
         <p>菜品展示价格: <span class="label label-info"><%= @food.show_price || "无" %></span> </p>
       </div>
      </div>
    </div>  
  </div>

  <div class="col-lg-6">
    <div class="panel panel-default">
     <div class="panel-heading">菜品封面图</div>
      <div class="panel-wrapper collapse in">
       <div class="panel-body">
         <%= image_tag @food.attachment.url,class: 'thumbnail',style:'width:100%;' %>
       </div>
      </div>
    </div>  
  </div>

  <div class="col-lg-12">
    <div class="well">
      <h4>菜品描述</h4>
      <p>
        <%= @food.description || "无菜品描述" %>
      </p>
    </div>
  </div>
</div>